<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>Market place</title>
</head>
<f:view>
	<body>
		<ui:composition>
			<p:dialog widgetVar="orderDeleteDlg" modal="true"
				id="orderDeleteDialog" header="#{msgs.cancelOrder}"
				showEffect="explode" hideEffect="clip" width="850" height="500">				
					<h:panelGrid columns="1" style="width:100%">
						<ui:include src="/components/public/myOrders/orderPanel.xhtml"></ui:include>
						<h:outputLabel style="width:100%;text-align:center;font-weight:bold;color:red">${msgs.confirmCancelOrder}?</h:outputLabel>
						<h:panelGrid columns="2" style="width:100%">
							<p:commandButton value="#{msgs.yes}"
								oncomplete="orderDeleteDlg.hide()"
								actionListener="#{orderController.cancelCurrent}"
								update=":centerForm" style="float:right"></p:commandButton>
							<p:commandButton value="#{msgs.no}"
								onclick="orderDeleteDlg.hide()" style="float:left"></p:commandButton>
						</h:panelGrid>
					</h:panelGrid>				
			</p:dialog>
		</ui:composition>
	</body>
</f:view>
</html>